Proximity Analysis Using Python